<template>
  <view>
    <view class="info flex">
      签约商家
      <view>
        <image
          src="../../../static/images/shop.png"
          style="width: 120rpx; margin-left: 10rpx"
          mode="widthFix"
        >
        </image>
      </view>
    </view>
    <!--
		<view class="infoImg" v-if="qualifications" >
			<view style="position: relative;">
				<image :src="qualifications.certificates" style="height: 380rpx;width: 100%;" />
				<image src="" style="height: 380rpx;width: 100%;position: absolute;top: 0;" mode="">
				</image>
				<wm-watermark :text="name"></wm-watermark>
			</view>

			<view class="text">营业执照</view>
		</view>

		<view class="infoImg" v-if="qualifications">

			<view style="position: relative;">
				<image :src="qualifications.business" style="height: 380rpx;width: 100%;" />
				<image src="" style="height: 380rpx;width: 100%;position: absolute;top: 0;" mode="">
				</image>
				<wm-watermark :text="name"></wm-watermark>
			</view>

			<view class="text">资质认证</view>
		</view>
		<view class="infoImg" v-if="technician_healthy">

			<view style="position: relative;">
				<image :src="technician_healthy.certificates" style="height: 380rpx;width: 100%;" />
				<image src="" style="height: 380rpx;width: 100%;position: absolute;top: 0;" mode="">
				</image>
				<wm-watermark :text="name"></wm-watermark>
			</view>

			<view class="text">健康证</view>
		</view> -->
  </view>
</template>

<script>
//	import wmWatermark from '@/components/wm-watermark/wm-watermark.vue';
import wmWatermark from "@/components/wm-watermark/wm-watermark.vue";
export default {
  components: {
    wmWatermark,
  },
  data() {
    return {
      watermark: "",
      id: 0,
      certificates: "",
      healthy: "",
      qualifications: "",
      name: "",
      technician_healthy: "",
    };
  },
  onLoad(e) {
    this.id = e.id;
    this.name = uni.getStorageSync("name");
  },
  onShow() {
    this.watermark = this.$base.platformName;
    this.init();
  },
  methods: {
    async init() {
      let data = await this.$http.post("api/technician/details", {
        id: this.id,
      });
      for (let i in data.technician) {
        this[i] = data.technician[i];
      }
    },
  },
};
</script>

<style>
.info {
  width: 85%;
  margin: 20rpx auto;
}

.infoImg {
  width: 85%;
  text-align: center;
  margin: 20rpx auto;
  background-color: #ffffff;
  border-radius: 10rpx;
  padding: 10rpx;
}

.text {
  margin: 10rpx;
  font-size: 30rpx;
  font-weight: bold;
  color: #797979;
}
</style>
